package com.wlcj.www.util;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;

public class RequestUtil {
	
	public static String createReturnUrl(HttpServletRequest request) {
		String returnUrl = request.getScheme() + "://"
			      + request.getServerName()
			      + request.getContextPath() + request.getRequestURI();  
		String param = request.getQueryString();
		param = StringUtils.isBlank(param)?"":"?"+param;
		return returnUrl + param;
	}

}
